package com.csun.dsms.model.domain;

import com.csun.dsms.comment.core.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.*;

@Data
@Table(name = "dsms_poor")
public class DsmsPoor extends BaseEntity {

    /**
     * 单位id
     */
    @Column(name = "unit_id")
    private Long unitId;

    /**
     * 居住地
     */
    @Column(name = "unit_name")
    private String unitName;

    /**
     * 姓名
     */
    private String name;

    /**
     * 性别 1-男 0-女
     */
    private Integer sex;

    /**
     * 出生日期，格式yyyy-mm-dd
     */
    private String birthday;

    /**
     * 身份证编号
     */
    @Column(name = "id_card")
    private String idCard;

    /**
     * 家庭住址
     */
    @Column(name = "home_address")
    private String homeAddress;

    /**
     * 大地经纬度 经度,纬度
     */
    @Column(name = "location_wgs")
    private String locationWgs;

    /**
     * 位置
     */
    private String location;

    /**
     * 民族
     */
    private String nation;

    /**
     * 头像
     */
    @Column(name = "head_pic")
    private String headPic;

    /**
     * 自理能力 1-全失能 2-半失能 3-全自理
     */
    @Column(name = "self_care_ability")
    private Integer selfCareAbility;

    /**
     * 是否残疾 0-否 1-是
     */
    @Column(name = "is_disability")
    private Integer isDisability;

    /**
     * 是否老年人 0-否 1-是
     */
    @Column(name = "is_elderly")
    private Integer isElderly;

    /**
     * 是否未成年人 0-否 1-是
     */
    @Column(name = "is_minor")
    private Integer isMinor;

    /**
     * 供养方式 1-集中 2-分散
     */
    @Column(name = "support_way")
    private Integer supportWay;

    /**
     * 登记时间 yyyy-MM-dd
     */
    @Column(name = "check_in")
    private String checkIn;

    /**
     * 审核状态 0-待审核 1-审核通过 2-审核不通过
     */
    private Integer apply;

    /**
     * 审核不通过原因
     */
    private String reason;

    /**
     * 状态 ENABLE-启用 DISABLE-禁用
     */
    private String status;

    /**
     * 备注
     */
    private String remark;

    /**
     * 是否变动 1是0否
     */
    @Column(name = "is_change")
    private String isChange;

    @Column(name = "is_die")
    private Integer isDie;

    // 镇
    @Column(name = "town")
    private Long town;

    // 村居
    @Column(name = "village")
    private Long village;

    // 残疾类别（1视力、2听力、3言语、4肢体、5智力、6精神、7多重）
    @Column(name = "disability_type")
    private String disabilityType;

    // 残疾详情
    @Column(name = "disability_details")
    private String disabilityDetails;

    // 是否独居
    @Column(name = "is_living_alone")
    private String isLivingAlone;

    // 共同居住人
    @Column(name = "cohabitant_name")
    private String cohabitantName;

    // 特困人员电话
    @Column(name = "phone")
    private String phone;

    // 近亲属姓名
    @Column(name = "kinsfolk_name")
    private String kinsfolkName;

    // 近亲属关系
    @Column(name = "kinsfolk_relation")
    private String kinsfolkRelation;

    // 近亲属电话
    @Column(name = "kinsfolk_phone")
    private String kinsfolkPhone;

}